package network.chat.socket;

import java.io.IOException;

public class Main {

	private static int id_client;

	public static void main(String[] args) {
		// Server.main(null);
		int maxclient = 3;
		for (int i = 0; i < maxclient; i++) {
			try {
				Client client = new Client("client " + ++id_client);
				IHMClient clientIHM = new IHMClient();
				client.setIHMClient(clientIHM);
				clientIHM.setClient(client);
				client.go();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}